<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>XX系统 - 房屋信息更新</title>
	<link rel="stylesheet" href="/css/main.css">
	<link rel="stylesheet" href="/css/font-awesome/css/font-awesome.css">
</head>
<body>
<div class="box">
	<h3>编辑房屋信息</h3>
	<form action="/flats/edit" method="post" enctype="multipart/form-data">
		<table class="form-table">
			<tr>
				<td>地区</td>
				<td colspan="3" class="control">
					<input type="text" name="h_id" value="${flat.h_id }" readonly="readonly">
					<span style="color: red;">*不可修改</span>
				</td>
			</tr>
			<tr>
				<td>地区</td>
				<td colspan="3" class="control">
					<input type="text" name="h_area" placeholder="填写地区" value="${flat.h_area }">
				</td>
			</tr>
			<tr>
				<td>小区名字</td>
				<td colspan="3" class="control">
					<input type="text" name="h_estate" placeholder="小区名字" value="${flat.h_estate }">
				</td>
			</tr>
			<tr>
				<td>单元号</td>
				<td colspan="3" class="control">
					<input type="text" name="h_unitNumber" placeholder="单元号" value="${flat.h_unitNumber }">
				</td>
			</tr>
			<tr>
				<td>楼层</td>
				<td colspan="3" class="control">
					<input type="text" name="h_floor" placeholder="楼层" value="${flat.h_floor }">
				</td>
			</tr>
			<tr>
				<td>房间号</td>
				<td colspan="3" class="control">
					<input type="text" name="h_roomNo" placeholder="房间号" value="${flat.h_roomNo }">
				</td>
			</tr>
			<tr>
				<td>面积（平米）</td>
				<td colspan="3" class="control">
					<input type="text" name="h_acreage" placeholder="面积" value="${flat.h_acreage }">
				</td>
			</tr>
			<tr>
				<td>朝向</td>
				<td colspan="3" class="control">
					<input type="text" name="h_direction" placeholder="朝向" value="${flat.h_direction }">
				</td>
			</tr>
			<tr>
				<td>装修</td>
				<td colspan="3" class="control">
					<input type="text" name="h_fitment" placeholder="装修" value="${flat.h_fitment }">
				</td>
			</tr>
			<tr>
				<td>是否双气</td>
				<td colspan="3" class="control">
					<input type="text" name="h_isDoubleAir" placeholder="是否双气" value="${flat.h_isDoubleAir }">
				</td>
			</tr>
			<tr>
				<td>限住人数</td>
				<td colspan="3" class="control">
					<input type="text" name="h_limit" placeholder="限住人数" value="${flat.h_limit }">
				</td>
			</tr>
			<tr>
				<td>配套设施</td>
				<td colspan="3" class="control">
					<input type="text" name="h_facility" placeholder="配套设施" value="${flat.h_facility }">
				</td>
			</tr>
			<tr>
				<td>出租价格（元/月）</td>
				<td colspan="3" class="control">
					<input type="text" name="h_price" placeholder="出租价格" value="${flat.h_price }">
				</td>
			</tr>
			<tr>
				<td>出租状态</td>
				<td colspan="3" class="control">
					<select name="h_status">
					
						<option value="${flat.h_status }" ${flat.h_status=="1"?"selected":""}>已出租</option>
					
						<option value="${flat.h_status }"  ${flat.h_status=="2"?"selected":""}>未出租</option>
				
					</select>
				</td>
			</tr>

			<tr>
				<td>完整地址信息</td>
				<td colspan="3" class="control">
					<input style="width: 400px;" type="text" name="h_address" placeholder="" value="${flat.h_address }">
				</td>
			</tr>
		</table>
		<div class="buttons">
			<input class="btn btn-primary va-bottom" type="submit" value="保存">&nbsp;&nbsp;
			<a class="btn btn-default" href="javascript:history.go(-1)">返回</a>
		</div>
	</form>
</div>
</body>
</html>